<h1>个人信息</h1>
<% if current_user && @user != current_user%>
<%= button_to "私聊", {controller: 'rooms', action: 'create'}, method: :post, params: {receiver_id: @user.id} %>
<%end%>
<p>姓名: <%= render @user%></p>
<p>邮箱: <%= @user.email %></p>
<p>联系方式: <%= @user.contact %></p>
<p>区域: <%= @user.region %></p>
<p>备注: <%= @user.note %></p>
<p>等级: <%= @user.level %></p>

<p>二维码: </p>
<%= image_tag @user.qrcode.url(:medium) %>



<%= link_to "返回", :back %>